<?php
	header('content-type:text/html; charset=utf-8');
	session_start();
	if(isset($_SESSION['user'])){
		print_r("<h3>通讯录界面</h3>");
		print_r("<a href='logout.php'>退出</a>");
	}else{
		header('Refresh:2;url=/login.php');
		die('<h3>请先登录</h3><a>返回重新登录</a>');
	}
?>